<include file="Article:leftmenu" />
<div class="content-right fl">

	<table class="wxtables mgt10">
		<colgroup>
			<col width="10%">
			<col width="10%">
			<col width="17%">
			<col width="15%">
			<col width="15%">
		</colgroup>
		<thead>

			<tr class="po_list">
				<td>编号<span></span></td>
				<td>分类名称<span></span></td>
				<td>排序<span></span></td>
				<td>链接<span></span></td>
				<td>操作<span></span></td>
			</tr>
		</thead>
		<tbody>
		<?php foreach($atype as $k=>$v){?>
			<tr>
				<td><?php echo $v['atype_id'];?></td>
				<td><?php echo $v['atype_name'];?></td>
				<td><?php echo $v['atype_ord'];?></td>
				<td><?php echo get_domain();?>/mobile/article/lists/?atype_id=<?php echo $v['atype_id'];?></td>
				<td>
<a href="/admin/article/edittype/?atype_id=<?php echo $v['atype_id'];?>" class="btn width" title="修改">编辑</a>

<a href="javascript:del(<?php echo $v['atype_id'];?>);" class="btn j-del" title="删除" data-id="2416530">删除</a>

</td>
			  

				
			</tr>
		<?php } ?>
		</tbody>
	</table>
</div>

<script>
function del(id){

	//询问框
	layer.confirm('你确定要删除吗？', {
	    btn: ['确定','我再想想'] //按钮
	}, function(){
		var url = "/admin/article/deltype/?id="+id;
		AjaxUrl(url);
	}, function(){


	});
	
	
	
}

</script>